#include <stdio.h>
#include<unistd.h>
#include "progressBar2.h"

double speed = 1.0;
double total = 1024.0;

void Upload()
{
    printf("Upload begin...\n");
    double current = 0;
    while(current<=total)
    {
        progressBar2(current,total);
        current+=speed;
        usleep(10000);
    }
    printf("\nCompleted total:%.1lf\n",total);
}

int main()
{
    Upload();
    return 0;
}
